<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/28
  Time: 11:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
b1
    <%
        //session容器添加
        session.setAttribute("A","a");
        session.setAttribute("B","b");
        //删除
        session.removeAttribute("A");
        //得到session容器中的内容
        Object obj1 = session.getAttribute("A");
        Object obj2 = session.getAttribute("B");
        out.print(obj1);
        out.print(obj2);
        response.sendRedirect("b2.jsp");
    %>
</body>
</html>
